package edu.spec.wfl.week07.class1.classroom;

public class Chinese extends Human {
    // TODO 给language赋初值“普通话”
    private String language = "普通话";    // 语言

    // TODO 默认构造方法，方法里实现输出打印“我是中国人，我很自豪。”

    public Chinese() {
        // 先调用Human默认构造方法
        System.out.println("我是中国人，我很自豪");
    }
    // TODO 自定义构造方法，参数对应4个成员变量的值，方法体完成4个成员变量的初始化

    public Chinese(String area, String mainFood, String skinColor, String language1) {
        super.setArea(area);
        super.setMainFood(mainFood);
        super.setMainFood(mainFood);
        this.language = language1;
    }

    // TODO language的getter和setter

    @Override
    public String getLanguage() {
        return language;
    }

    @Override
    public void setLanguage(String language) {
        this.language = language;
    }

    public void printLanguage(){
        super.printLanguage();
        System.out.println(this.language);
    }
    public void speak(){
        super.speak();
        System.out.println("我说" + this.language);
    }
}
